﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000C5 RID: 197
	internal class FixString : IStringDecoder
	{
		// Token: 0x060002F6 RID: 758 RVA: 0x0000BCF7 File Offset: 0x0000A0F7
		private FixString()
		{
		}

		// Token: 0x060002F7 RID: 759 RVA: 0x0000BD00 File Offset: 0x0000A100
		public string Read(byte[] bytes, int offset, out int readSize)
		{
			int num = (int)(bytes[offset] & 31);
			readSize = num + 1;
			return StringEncoding.UTF8.GetString(bytes, offset + 1, num);
		}

		// Token: 0x040000E2 RID: 226
		internal static readonly IStringDecoder Instance = new FixString();
	}
}
